# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Alexandre Filgueira (faidoc) <alexfilgueira@antergos.com>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=cinnamon-settings-daemon
pkgver=5.6.2
pkgrel=1
pkgdesc="The Cinnamon Settings daemon"
arch=(loong64 x86_64)
url="https://github.com/linuxmint/${pkgname}"
license=(GPL)
depends=(cinnamon-desktop colord dbus-glib libcanberra-pulse libcups
         libgnomekbd libgudev libnotify librsvg libwacom nss polkit
         pulseaudio-alsa upower)
optdepends=('cinnamon-translations: i18n')
makedepends=(meson samurai xf86-input-wacom)
options=(!emptydirs)
source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('f3c08b50889e42510ef423d18d0fe0c55bf2c9c4fa436d16864eb477b7dcb055a50973e2d5f7a4339d1094dc760c5ad05848a6e13dffa87f6fb8cad1f76b970d')
b2sums=('eef91b591db1c0e546897c88c171aaf103c3ad619ea0ab31dca09e78ae18993f63b4b29ca82a3dc1bcd1def871845b1753f462e347f11c48dac729b844da20b2')

build() {
  arch-meson --libexecdir=lib/${pkgname} ${pkgname}-${pkgver} build
  samu -C build
}

package() {
  DESTDIR="${pkgdir}" samu -C build install
}
